/**
 * token api
 */
import $http from '../../http/http'

/**
 * 获取手机验证码
 * 
 * @param {手机号} phoneNumber 
 */
export const getPhoneToken = phoneNumber => {
    return $http({
        method: "get",
        url: "token/getPhoneToken",
        params: {
            phoneNumber: phoneNumber
        }
    });
}

/**
 * 获取防重复提交码
 * 
 * @param {随机数} randomNumber 
 */
export const getResubmitToken = randomNumber => {
    return $http({
        method: "get",
        url: "token/getResubmitToken",
        params: {
            x: randomNumber
        }
    });
}